﻿@model GdHotel.Data.News

@{
    ViewBag.Title = "Создать";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Создать</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/ckeditor/ckeditor.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/ckeditor/adapters/jquery.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/wysiwyg.js")" type="text/javascript"></script>

@using (Html.BeginForm("Create", "ManageNews", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary("Пожалуйста, исправьте ошибки")
    <fieldset>
        <legend>Новость</legend>

        @Html.Partial("_EditNewsPartial")

        <p>
            <input type="submit" value="Создать" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Назад к списку", "Index")
</div>
